package com.stu.maphandler.detail;

import com.stu.maphandler.OperateHandler;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

/**
 * @author zhuzi
 * 2022/5/31
 */
@Slf4j
@Component
public class LeftHandler extends OperateHandler {
	@Override
	public void apply(String str) {
		System.out.println(StringUtils.rightPad(str, 30, "-"));
	}

	@Override
	public String[] support() {
		return new String[]{
				"d", "c"
		};
	}
}
